﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace demo.Entity
{
    public class Advert
    {
        [Display(Name = "Id")]
        public int Id { get; set; }

        [Display(Name = "图片")]
        [StringLength(500)]
        public string Photo { get; set; }

        [Required]
        [Display(Name = "名称")]
        [StringLength(30)]
        public string Name { get; set; }

        [Required]
        [Display(Name = "描述")]
        [StringLength(500)]
        public string Description { get; set; }

        [Display(Name = "排序")]
        public int Sort { get; set; }
        
    }
}
